﻿#pragma once
#include "mmLTDMC.h"

// CLTDMC_AxisControl_Dlg 对话框

class CLTDMC_AxisControl_Dlg : public CDialogEx
{
	DECLARE_DYNAMIC(CLTDMC_AxisControl_Dlg)

public:
	CLTDMC_AxisControl_Dlg(CWnd* pParent = nullptr);   // 标准构造函数
	virtual ~CLTDMC_AxisControl_Dlg();

// 对话框数据
#ifdef AFX_DESIGN_TIME
	enum { IDD = IDD_LTDMC_AxisControl };
#endif

protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV 支持

	DECLARE_MESSAGE_MAP()
public:
	virtual BOOL OnInitDialog();
	virtual void OnCancel();
	afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);
	afx_msg void OnTimer(UINT_PTR nIDEvent);
	int CurAxis = 0;
	void InitCurAxis();
	HBRUSH hbr;
	afx_msg void OnCbnSelchangeComboAxisname();
	afx_msg void OnBnClickedButtonEnable();
	afx_msg void OnBnClickedButtonDisable();
	afx_msg void OnBnClickedButtonEnableall();
	afx_msg void OnBnClickedButtonDisableall();
	afx_msg void OnBnClickedButtonMovep();
	afx_msg void OnBnClickedButtonMoven();
	afx_msg void OnBnClickedButtonResetpos();
	afx_msg void OnBnClickedButtonEmergstop();
	afx_msg void OnBnClickedButtonHome();
	afx_msg void OnBnClickedButtonSave();
};

extern CLTDMC_AxisControl_Dlg * m_LTDMC_AxisControl;